﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace abhishek.somnath.bidyut.library
{
    public class StudentInfo
    {
        private int _roll;

        public int RollNo //property
        {
            get
            {
                return _roll;
            }
            set
            {
                if (value > 0)
                    _roll = value;
            }
        }

        public string Name { get; set; } //auto property
    }
}
